import request from '@/utils/request'

export const getLoginApi = (data) => {
  // post是data接字符串、数组、对象、各类复杂数据类型
  return request.post('/auth/login', data)
}

export const getUserApi = () => {
  return request.get('/auth/currentUser')
}
